# num = eval(input("请输入一个四位数："))
# print("个位：",num%10)   #1234
# print("十位：",num//10%10)
# print("百位：",num//100%10)
# print("个位：",num//1000)
#
#
# r=eval(input('请输入圆的半径：'))
# area=3.14*r*r
# perimeter=2*3.14*r
# print('圆的面积是：',area,'周长是：',perimeter
# from unittest import case
#
# # sum=eval(input('请输入一个值：'))
# #
# # print("看一下，这个值后面有没有换行：",sum,end='\n')
#
# # a,b,c,d='room' #字符串分解赋值
# # print(a)
# # print(b)
# # print(c)
# # print(d)
#
# number=eval(input("Enter a number: "))
#
# # if number==100:
# #     print("恭喜你!中奖了！")
# # else:
# #     print("可惜了，没有中奖！")
# #
# # num=input("请输入字符串: ")
# #
# # if num:
# #     print('字符串是',num)
# # else:
# #     print('空字符串')
# #
# # print('恭喜你中奖了'if number==123 else '没有中奖')
# #
# # if elif
# num=input('Enter a numbe: ')
#
# match num:
#      case 'A':
#          print('A')
#      case 'B':
#          print('B')
#      case 'C':
#          print('C')
#      case 'D':
#         print('D')

#水仙花数
# for i in range(100,1000):
#     sd=i%10
#     ad=i//10%10
#     hd=i//100
#     if sd**3+ad**3+hd**3==i:
#         print(i)

#
# s=0
# i=1
# while i<=100:
#     s+=i
#     i+=1
#
# print(s)

print("网站名：{name}, 地址 {url}".format(name="菜鸟教程", url="www.runoob.com"))
site = {"name": "菜鸟教程", "url": "www.runoob.com"}
print("网站名：{name}, 地址 {url}".format(**site))

print ("{} 对应的位置是 {{0}}".format("runoob"))

name=input("输入姓名：")
print("{}同学，学好Python，前途无量！".format(name))     #请将命令行补充完整
print("{}大侠，学好Python，大展拳脚！" .format(name[0]))											  #请将命令行补充完整
print("{}哥哥，学好Python，人见人爱！".format(name[1:]))											  #请将命令行补充完整
